home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
rotate
/
rotate.doc
< prev
next >
Wrap
Text File
|
1994-09-22
|
2KB
|
63 lines
ROTATE.DLL
Copyright (C) 1994 DRAGON SOFTWARE
ALL Rights RESERVED
Thank You For Trying Rotate.DLL Rotate.DLL has functions that will rotate
and mirror Bitmaps within picturebox controls using Visual Basic For windows.
Provided is sample source Code Ready for Visual Basic and the EXE file.
Below is the VB declaration for the Custom Dynamic Library and should be
placed within the form declaration or the Module declaration.
Declare Function FLIP Lib "rotate.DLL" (ByVal src As Integer, ByVal dest As Integer, ByVal Picture%) As Integer
Declare Function ROTATE Lib "rotate.DLL" (ByVal src As Integer, ByVal dest As Integer, ByVal Picture%) As Integer
PARAMS:
SRC = Source picture box hDC
DEST = Destination picture box hDC
PICTURE = Source Picture box HBITMAP
RETURNS:
1 = Function was Successful
0 = Function was not successfull
Both the destination and Source Picture boxes must have these setting.
Autoredraw = True
Scalemode = 3 (PIXEL)
below is an example how to call the mirror function.
g% = FLIP(form1.Picture1.hDC, form1.Picture2.hDC, form1.Picture1.Picture)
Once the Function has been called you must Refresh the image in the
Destination Picture Box. Below is an example to do this.
Picture2.Refresh
To Convert the Destination Image to an actual picture that can be passed
from one picture box to another within Visual Basic You must place this
line after the Refresh Statement.
Picture2.Picture = Picture2.Image
-----------------------------------------------------------------------------
CONTACTING DRAGON SOFTWARE.
SUPPORT BBS.....................................(304)363-2252
AOL.............................................DSOFTWARE
INTERNET........................................DSOFTWARE@AOL.COM
PHONE...........................................(304)584-4143
US Mail.........................................P.O. Box 299
Lumberport, WV 26386
-----------------------------------------------------------------------------
REGISTRATION
Please Open REGISTER.TXT